package com.ruoyi.project.modules.statusProcess.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 状态流程实例对象 t_status_process
 * 
 * @author smallrain
 * @date 2021-11-12
 */
public class StatusProcess extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 运行类型（1-开始 2-中间 3-结束） */
    @Excel(name = "运行类型", readConverterExp = "1=-开始,2=-中间,3=-结束")
    private String runType;

    /** 状态类型（1-正常 2-分支） */
    @Excel(name = "状态类型", readConverterExp = "1=-正常,2=-分支")
    private String statusType;

    /** 场景模型（1-带流程任务的内容 2-带流程的内容 3-带任务的内容 4-纯内容） */
    @Excel(name = "场景模型", readConverterExp = "1=-带流程任务的内容,2=-带流程的内容,3=-带任务的内容,4=-纯内容")
    private String sceneModel;

    /** 关联状态id */
    @Excel(name = "关联状态id")
    private Long relationStatusId;

    private String relationStatusName;

    /** 关联前面状态id */
    @Excel(name = "关联前面状态id")
    private Long relationPreStatusId;

    private String relationPreStatusName;

    /** 状态（0正常 1停用） */
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public String getRelationStatusName() {
        return relationStatusName;
    }

    public void setRelationStatusName(String relationStatusName) {
        this.relationStatusName = relationStatusName;
    }

    public String getRelationPreStatusName() {
        return relationPreStatusName;
    }

    public void setRelationPreStatusName(String relationPreStatusName) {
        this.relationPreStatusName = relationPreStatusName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRunType(String runType) 
    {
        this.runType = runType;
    }

    public String getRunType() 
    {
        return runType;
    }
    public void setStatusType(String statusType) 
    {
        this.statusType = statusType;
    }

    public String getStatusType() 
    {
        return statusType;
    }
    public void setSceneModel(String sceneModel) 
    {
        this.sceneModel = sceneModel;
    }

    public String getSceneModel() 
    {
        return sceneModel;
    }
    public void setRelationStatusId(Long relationStatusId) 
    {
        this.relationStatusId = relationStatusId;
    }

    public Long getRelationStatusId() 
    {
        return relationStatusId;
    }
    public void setRelationPreStatusId(Long relationPreStatusId) 
    {
        this.relationPreStatusId = relationPreStatusId;
    }

    public Long getRelationPreStatusId() 
    {
        return relationPreStatusId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("runType", getRunType())
            .append("statusType", getStatusType())
            .append("sceneModel", getSceneModel())
            .append("relationStatusId", getRelationStatusId())
            .append("relationPreStatusId", getRelationPreStatusId())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
